home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / AIAT / Headers / Analysis / DocTextCharStream.h < prev    next >
Encoding:
Text File  |  1998-04-16  |  798 b   |  42 lines  |  [TEXT/CWIE]

  1. //    DocTextCharStream.h
  2. //    Copyright:    © 1994 - 1998 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #pragma once
  5. #ifndef DocTextCharStream_h
  6. #define DocTextCharStream_h
  7.  
  8. #pragma import on
  9.  
  10. #if PRAGMA_STRUCT_ALIGN
  11.     #pragma options align=power
  12. #endif
  13.  
  14. #include "IACharStream.h"
  15. #include "IACorpus.h"
  16.  
  17. #pragma IA_BEGIN_EXPORTS
  18.  
  19. class DocTextCharStream : public IACharStream {
  20. public:
  21.                 DocTextCharStream() : IACharStream(), docText(NULL) {}
  22.                 DocTextCharStream(IADocText* text) : IACharStream(), docText(text) {}
  23.                  ~DocTextCharStream();
  24.  
  25.     uint32        GetNextBuffer(char* buffer, uint32 bufferLen);
  26.     IADocText*    GetDocText() const {return docText;}
  27.     
  28. private:
  29.     IADocText*        docText;
  30.     
  31. };
  32.  
  33. #pragma IA_END_EXPORTS
  34.  
  35. #if PRAGMA_STRUCT_ALIGN
  36.     #pragma options align=reset
  37. #endif
  38.  
  39. #pragma import reset
  40.  
  41. #endif
  42.